Microsoft DirectX 8.1 (C++)

IAMDecoderCaps::GetDecoderCaps

The GetDecoderCaps method informs the application whether the decoder supports the Video Mixing Renderer.

Syntax

HRESULT GetDecoderCaps(
  DWORD dwCapIndex,
  DWORD* lpdwCap
);

Parameters

dwCapIndex

[in]  Specifies the capability being queried for as a DWORD.

Value Description
AM_QUERY_DECODER_VMR_SUPPORT (0x00000001) Query for support of the Video Mixing Renderer filter.
AM_QUERY_DECODER_DXVA_1_SUPPORT (0x00000002) Query for support of DirectX Video Acceleration.
AM_QUERY_DECODER_DVD_SUPPORT (0x00000003) Query for support of DVD video streams.
AM_QUERY_DECODER_ATSC_SD_SUPPORT (0x00000004) Query for support of standard definition ATSC video streams.
AM_QUERY_DECODER_ATSC_HD_SUPPORT (0x00000005) Query for support of high definition ATSC video streams.

lpdwCap

[out]  Specifies a pointer to a DWORD to receive the desired capability.

Value Description
DECODER_CAP_NOTSUPPORTED (0x00000000) The capability specified by dwCapIndex is not supported.
DECODER_CAP_SUPPORTED (0x00000001) The capability specified by dwCapIndex is supported.

Return Values

When this method succeeds, it returns S_OK. Otherwise it returns an HRESULT error code.

Remarks

The DVD Graph Builder uses this interface in the manner described above when building DVD graphs. If the decoder does not support the Video Mixing Renderer filter, then the DVD Graph Builder uses the Overlay Mixer filter instead.

See Also